package com.cdks.wuxiu.api.service.mysql;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cdks.wuxiu.api.component.constant.Constant;
import com.cdks.wuxiu.api.mapper.CallScoreInfoMapper;
import com.cdks.wuxiu.api.model.dto.CallScoreInfoDTO;
import com.cdks.wuxiu.entity.mysql.CallScoreInfo;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * 通话评分信息 服务实现类
 */
@Service
public class CallScoreInfoServiceImpl extends ServiceImpl<CallScoreInfoMapper, CallScoreInfo> implements CallScoreInfoService {

    @Override
    public List<CallScoreInfoDTO> getList(int page, long userId) {
        return baseMapper.getList(page * Constant.LIST_PAGE_SIZE, Constant.LIST_PAGE_SIZE, userId);
    }
}
